<link href="__PUBLIC__/plugins/fitui/tablegrid.css" rel="stylesheet">
<script src="__PUBLIC__/js/backend/format.js"></script>
<script src="__PUBLIC__/plugins/fitui/tablegrid.js"></script>
<script src="__PUBLIC__/js/backend/mer_wx_setting.js"></script>
<script>
var Param = <?php echo json_encode( $param ) ?> ;
$(function(){
  MerWxSetting.init(<?php echo json_encode( $config ) ?>);
});

</script>

<div class="page-content">
  <ol class="breadcrumb">
    <li><a href="<?php echo $home_url ?>">首页</a></li>
    <li><a href="<?php echo $catalog_url ?>"><?php echo $catalog_name ?></a></li>
    <li class="active">[<strong><?php echo $merchant_data['name'] ?></strong>] 的 <?php echo $module_name ?></li>
  </ol>
  <div class="page-content-inner"> 
    <!-- read_modal -->
    <div class="portlet blue" id="read_modal"> 
      <!-- portlet-title -->
      <div class="portlet-title">
        <div class="caption"> <i class="fa fa-wechat "></i> 商户 [<strong><?php echo $merchant_data['name'] ?></strong>] 的 <?php echo $module_name ?> </div>
        <div class="tools"> 
          <a href="<?php echo $module_url ?>?action=create" class="toolbtn add load_add_modal_btn" data-toggle="tooltip" data-placement="top" title="新增"></a> 
        </div>
      </div>
      <!-- end portlet-title -->
      <div class="portlet-body "> 

        <div class="row" id="data_html">            
        </div>
        <!-- end table --> 
        <div class="row" style="text-align:center; margin-top:60px;">
          <button type="button" class="btn btn-lg btn-default" onClick="javascript:history.go(-1)"><i class="fa fa-arrow-left"></i> 返回</button>
        </div>
      </div>
    </div>
    <!-- end portlet read_modal --> 
  </div>
  <!-- end page-content-inner --> 
</div>

<!-- add_model -->
<div class="modal fade" id="add_modal">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="action_label"></h4>
      </div>
      <div class="modal-body">
        <form id="add_form" class="form-horizontal">
          <div class="form-group">
            <label class="col-sm-3 control-label">微信登陆用户名</label>
            <div class="col-sm-7">
              <input name="username" placeholder="微信登陆用户名" data-valid="required" data-tips="请填写正确的微信登陆用户名" type="text" class="form-control" >
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label">密码</label>
            <div class="col-sm-7">
              <input name="password" placeholder="微信登陆密码" data-valid="required" data-tips="请填写正确的微信登陆密码" type="password" class="form-control" >
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> 关闭</button>
        <button type="button" class="btn btn-primary" id="add_btn"><i class="fa fa-check"></i> 提交</button>
      </div>
    </div>
    <!-- /.modal-content --> 
  </div>
  <!-- /.modal-dialog --> 
</div>
<!-- /#add_edit_model --> 


<!-- add_edit_model -->
<div class="modal fade" id="add_edit_modal">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="action_label"></h4>
      </div>
      <div class="modal-body">
        <form id="submit_form" class="form-horizontal">
          <div class="form-group">
            <label class="col-sm-3 control-label">名称</label>
            <div class="col-sm-7">
              <input name="name" placeholder="公众号名称" type="text" class="form-control" readonly>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label">微信号</label>
            <div class="col-sm-7">
              <input name="wx_no" placeholder="微信号" type="text" class="form-control" readonly >
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label">应用ID</label>
            <div class="col-sm-7">
              <input name="app_id" placeholder="应用ID"  type="text" class="form-control" >
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label">应用密钥</label>
            <div class="col-sm-7">
              <input name="app_secret" placeholder="应用密钥" type="text" class="form-control" >
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label">创建时间</label>
            <div class="col-sm-7">
              <input name="create_date" placeholder="创建时间" data-valid="required" data-tips="请填写正确的创建时间" type="text" class="form-control" >
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label">更新时间</label>
            <div class="col-sm-7">
              <input name="update_date" placeholder="更新时间" data-valid="required" data-tips="请填写正确的更新时间" type="text" class="form-control" >
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label">过期时间</label>
            <div class="col-sm-7">
              <input name="expire_date" placeholder="过期时间" data-valid="required" data-tips="请填写正确的过期时间" type="text" class="form-control" >
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> 关闭</button>
        <button type="button" class="btn btn-primary" id="submit_btn"><i class="fa fa-check"></i> 提交</button>
      </div>
    </div>
    <!-- /.modal-content --> 
  </div>
  <!-- /.modal-dialog --> 
</div>
<!-- /#add_edit_model --> 

